package com.blackfish.request;
import java.util.List;

import com.blackfish.common.model.*;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class RequestService {
	Request dao = new Request();
	
	public Request finadById(int id){
		return dao.findById(id);
	}
	
	public List<Request> findAll(){
		return dao.find("select * from request ");
	}

	public List<Record> findAllView(){
		return Db.find("select * from request ");
	}

}
